{config_load file=info.conf section="links"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#title#}</title>
{#css_style#}{#js_query#}{#js_getday#}
</head>
<body>
{include file="head.tpl"}
 <div class="waps">
       <div class="con">     
            <div  class="nopa">
            	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
                    <div class="pbox">
					<!--左框架开始 -->
						<div class="ls_lbox">
							<div class="am_title"><img src="../images/icons/05.png"  class="ls_icon"/><span class="lsfonts_l">修改密码</span></div>               
                                 <div class="box_jx"></div>
                                <div class="shuoming">
                                <img src="../images/tag.png"  class="shuoming_icon" width="16" height="16"/>
								 上海隆鹰国际物流有限公司<br/>
								上海市控江路2200号D座2302室<br/>
								TEL;021-51872290<br/>
								FAX:021-51862950<br/>
								QQ:706255527<br/>
								MSN:
						      	<br/>
							</div>
						</div>
						<!--左框架结束-->
						<div class="ls_rbox">
							<div class="am_title"><span class="lsfonts_r">修改</span></div>
							<div class="listers">
	                           <table>
				                 	<tr>
				                    	<td  class="step_rulname">昵称:</td>
				                        <td  class="step_rultxt">{$user.nick}</td>
				                    </tr>
				                    <tr>
				                    	<td class="step_rulname">原密码:</td>
				                        <td  class="step_rultxt"><input id="opw" type="password" maxlength="20"  class="step_txt" style="width:160px;" value=""/></td>
				                    </tr>
				                    <tr>
				                    	<td class="step_rulname">新密码:</td>
				                        <td  class="step_rultxt"><input id="npw" type="password" maxlength="20"  class="step_txt" style="width:160px;" value=""/></td>
				                    </tr>
				                    <tr>
				                    	<td class="step_rulname">重复密码:</td>
				                        <td class="step_rultxt"><input id="nrpw" type="password" maxlength="20"  class="step_txt" style="width:160px;" value=""/></td>
				                    </tr>
				                 </table>
				                  <table class="next_step" align="center"> 
									<tr> 
										<td><a href="javascript:modify();"><div class="next_btn">修 改</div></a></td></td>
										<td><a href="../railway/list.php"><span>返回</span></a></td> 
									</tr> 
								</table>
                            </div>
						</div>
						<!--右框架结束-->
					<div class="clear"></div>
</div></div></div></div>
<div id="test"></div>
{include file="foot.tpl"}
{literal}
<script type="text/javascript">
function modify(){
	var opw=encodeURIComponent($.trim($("#opw").attr("value")));
	var npw=encodeURIComponent($.trim($("#npw").attr("value")));
	var nrpw=encodeURIComponent($.trim($("#nrpw").attr("value")));
	var params ={act:"modify",opw:opw,npw:npw,nrpw:nrpw};	
	$.post('password.php',params,function(data) {
		if(data>0){
			window.location = "login.php";
		}else{
			alert(data);
		}
	});		
}
</script>{/literal}
</body>
</html>